package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineCreativeInfo
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/1 17:03
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取广告创意列表返回参数")
public class OceanengineCreativeInfo {

    /**
     * message : OK
     * code : 0
     * data : {"page_info":{"page_size":100,"page":1,"total_number":3698,"total_page":37},"list":[{"status":"CREATIVE_STATUS_AUDIT","advertiser_id":3526908054,"audit_reject_reason":"ads","ad_id":1616029396542503,"title":"沃尔福德是非得失","creative_id":1616029554527293,"video_id":"ads","creative_word_ids":[1,2],"image_id":"ads","metarials":[{"image_id":"ads","video_id":"ads","audit_reject_reason":"ads","title":"沃尔福德是非得失"},{"image_id":"web.business.image/201808075d0d26b418165b0342b9bb45","video_id":"ads","audit_reject_reason":"ads","title":"ads"}],"third_party_id":"ads","image_mode":"CREATIVE_IMAGE_MODE_SMALL","image_ids":["web.business.image/201808075d0d26b418165b0342b9bb45"],"creative_create_time":"2019-05-29 21:28:04","creative_modify_time":"2019-05-30 11:38:16","opt_status":"CREATIVE_STATUS_ENABLE"}]}
     */

    private String message;
    private int code;
    private DataBean data;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "获取广告创意列表返回参数实体")
    public static class DataBean {
        /**
         * page_info : {"page_size":100,"page":1,"total_number":3698,"total_page":37}
         * list : [{"status":"CREATIVE_STATUS_AUDIT","advertiser_id":3526908054,"audit_reject_reason":"ads","ad_id":1616029396542503,"title":"沃尔福德是非得失","creative_id":1616029554527293,"video_id":"ads","creative_word_ids":[1,2],"image_id":"ads","metarials":[{"image_id":"ads","video_id":"ads","audit_reject_reason":"ads","title":"沃尔福德是非得失"},{"image_id":"web.business.image/201808075d0d26b418165b0342b9bb45","video_id":"ads","audit_reject_reason":"ads","title":"ads"}],"third_party_id":"ads","image_mode":"CREATIVE_IMAGE_MODE_SMALL","image_ids":["web.business.image/201808075d0d26b418165b0342b9bb45"],"creative_create_time":"2019-05-29 21:28:04","creative_modify_time":"2019-05-30 11:38:16","opt_status":"CREATIVE_STATUS_ENABLE"}]
         */

        private PageInfoBean page_info;
        private List<ListBean> list;

        @NoArgsConstructor
        @Data
        public static class PageInfoBean {
            /**
             * page_size : 100
             * page : 1
             * total_number : 3698
             * total_page : 37
             */

            private int page_size;
            private int page;
            private int total_number;
            private int total_page;
        }

        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取广告创意列表返回参数实体——集合")
        public static class ListBean {
            /**
             * status : CREATIVE_STATUS_AUDIT
             * advertiser_id : 3526908054
             * audit_reject_reason : ads
             * ad_id : 1616029396542503
             * title : 沃尔福德是非得失
             * creative_id : 1616029554527293
             * video_id : ads
             * creative_word_ids : [1,2]
             * image_id : ads
             * metarials : [{"image_id":"ads","video_id":"ads","audit_reject_reason":"ads","title":"沃尔福德是非得失"},{"image_id":"web.business.image/201808075d0d26b418165b0342b9bb45","video_id":"ads","audit_reject_reason":"ads","title":"ads"}]
             * third_party_id : ads
             * image_mode : CREATIVE_IMAGE_MODE_SMALL
             * image_ids : ["web.business.image/201808075d0d26b418165b0342b9bb45"]
             * creative_create_time : 2019-05-29 21:28:04
             * creative_modify_time : 2019-05-30 11:38:16
             * opt_status : CREATIVE_STATUS_ENABLE
             */
            @ApiModelProperty(value = "创意素材状态, 详见【附录-创意状态】")
            private String status;
            @ApiModelProperty(value = "广告主ID")
            private Long advertiser_id;
            private String audit_reject_reason;
            @ApiModelProperty(value = "广告计划ID")
            private Long ad_id;
            @ApiModelProperty(value = "创意素材标题")
            private String title;
            @ApiModelProperty(value = "创意ID")
            private Long creative_id;
            @ApiModelProperty(value = "视频id")
            private String video_id;
            @ApiModelProperty(value = "视频素材封面")
            private String image_id;
            @ApiModelProperty(value = "第三方id")
            private String third_party_id;
            @ApiModelProperty(value = "创意素材类型, 详见【附录-素材类型】")
            private String image_mode;
            @ApiModelProperty(value = "广告创意创建时间")
            private String creative_create_time;
            @ApiModelProperty(value = "广告创意更新时间")
            private String creative_modify_time;
            @ApiModelProperty(value = "创意素材操作状态, 详见【附录-创意操作状态】")
            private String opt_status;
            @ApiModelProperty(value = "动态词包列表")
            private List<Long> creative_word_ids;
            @ApiModelProperty(value = "素材信息列表，标题，图片，视频均是不同素材")
            private List<MetarialsBean> metarials;
            @ApiModelProperty(value = "图片素材id列表")
            private List<String> image_ids;


            @NoArgsConstructor
            @Data
            @ApiModel(value = "获取广告创意列表返回参数实体——素材信息列表，标题，图片，视频均是不同素材")
            public static class MetarialsBean {
                /**
                 * image_id : ads
                 * video_id : ads
                 * audit_reject_reason : ads
                 * title : 沃尔福德是非得失
                 */
                @ApiModelProperty(value = "视频素材封面")
                private String image_id;
                @ApiModelProperty(value = "视频id")
                private String video_id;
                @ApiModelProperty(value = "\t创意素材标题")
                private String title;
            }
        }
    }
}
